package com.java.interview.i设计模式.建造者模式;

import com.java.crazy.base.BaseClass;

/**
 * 测试类
 *
 * @Description: 建造者模式
 * @Auther: sixbing  QQ:414409451
 * @Date: 2018/12/17 13:55
 */
public class BuilderTest extends BaseClass {
    public static void main(String[] args) {
        BuilderDemo builder = new BuilderDemo.Builder()//构造类
                .setAge(11111)
                .setName("name1111")
                .Builder();
        logi(builder.getAge());
        logi(builder.getName());
        BuilderDemo builderDemo = new BuilderDemo();//默认构造器
        logi(builderDemo.getAge());
        logi(builderDemo.getName());
    }
}
